





bool LataaTGA(char *TiedostoNimi, struct TEKSTUURI &Tekstuuri );

bool Lataa3DS( char *TiedostoNimi, struct MALLI3D &Malli3D );

bool LataaLista( char *TiedostoNimi, char *&Lista  );

bool LataaFontinLeveydet( char *TiedostoNimi, int Leveydet[257] );



struct _3DS
{
    
    char Nimi[20];

    unsigned short VerteksienLKM;    
    GLfloat **Verteksit;                // xyzxyzxyz...

    unsigned short TahkojenLKM;
    unsigned short **Tahkot;            // abcabcabc...

    unsigned short TeksKoordienLKM;    
    GLfloat **TeksKoordit;              // uvuvuvuv...

};





struct TGA
{
    unsigned char IDLenght;
    unsigned char ColorMapType;
    unsigned char ImageType;
    
    unsigned short ImageWidth;
    unsigned short ImageHeight;    
    unsigned char PixelDepth;
    unsigned char Components;
    
    unsigned char *ImageData;
};

const unsigned char UncompessedTrueColorTGA = 2;
const unsigned char RLETrueColorTGA = 10;
const unsigned char RawPacket = 0;
const unsigned char RLPacket = 1;




































